package com.yf.dmp.controller;


import com.yf.dmp.bean.User;
import com.yf.dmp.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
public class LoginController {
    @Autowired
    LoginService loginService;

    @RequestMapping("/login")
    public String Login(@RequestBody User user){
      return   loginService.Login(user);
    }

}
